﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MemeberMain.Master" AutoEventWireup="true" CodeBehind="EducationForum.aspx.cs" Inherits="outREACH.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
<div id="header-wrapper">
     
		<div id="header">
       
			<div id="menu">
            
				<ul>
					<li><a id="A1" href="~/HomeMem.aspx" runat="server">HOME</a></li>
					<li class="current_page_item"><a id="A2" href="~/Education/EducationMem.aspx" runat="server">EDUCATION</a></li>
                    <li><a id="A3" href="~/Medical/MedicalMem.aspx" runat="server">MEDICAL</a></li>
					<li><a id="A4" href="~/Infrastructure/InfrastructureMem.aspx" runat="server">INFRA STRUCTURE</a></li>
					<li><a id="A5" href="~/Donation/DonationMem.aspx" runat="server">DONATION</a></li>
					<li><a id="A6" href="~/ContactUs_Mem.aspx" runat="server">CONTACT US</a></li>
				</ul>
               
			</div>
            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="ImageButton1" runat="server" Height="170px" 
                ImageUrl="~/Images/Untitled-2.png" Width="175px" CausesValidation="False" 
                PostBackUrl="~/HomeMem.aspx" />
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel5" runat="server" Height="1030px" Font-Size="13pt" 
        ForeColor="Black">
        <asp:Label ID="edu" runat="server" Font-Bold="True" Font-Italic="True" 
            Font-Size="20pt" Text="EDUCATION - EDUCATIONAL FORUM"></asp:Label>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" 
            PostBackUrl="~/Education/EduForumNewThread.aspx" 
            Text="Start a New Thread" onclick="Button1_Click" />
        <br />
        &nbsp;<br /> <br />
        <asp:GridView ID="gvEduForumMain" runat="server" AutoGenerateColumns="False" 
            DataSourceID="EduForumMain" Width="600px" align ="center" 
            onselectedindexchanged="gvEduForumMain_SelectedIndexChanged" 
            onrowcommand="gvEduForumMain_RowCommand" onunload="gvEduForumMain_Unload" 
            AllowPaging="True" PageSize="6">
            <Columns>
                <asp:TemplateField HeaderText="Thread Starter">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Font-Bold="True" 
                            Text='<%# Eval("userName") %>'></asp:Label>
                        <br />
                        <asp:Image ID="Image2" runat="server" Height="80px" 
                            ImageUrl='<%# Eval("imagePath") %>' Width="80px" />
                        <br />
                        Country:
                        <asp:Label ID="Label4" runat="server" Text='<%# Eval("country") %>'></asp:Label>
                        <br />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="90px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thread">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" Font-Size="14pt" 
                            ForeColor="Blue" NavigateUrl='<%# "EducationForumView.aspx?title="+Eval("title")+"&id="+Eval("EduForumID") %>' 
                            Text='<%# Eval("title") %>'></asp:HyperLink>
                        <br />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="dateTimeUpdated" HeaderText="Last Updated" 
                    SortExpression="dateTimeUpdated" />
                <asp:BoundField DataField="noOfReply" HeaderText="No of Reply" 
                    SortExpression="noOfReply"></asp:BoundField>
            </Columns>
            <SelectedRowStyle BackColor="Yellow" />
        </asp:GridView>
        <asp:GridView ID="gvEduForumMain0" runat="server" align="center" 
            AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="EduForumID" DataSourceID="EduForumMain" 
            onrowcommand="gvEduForumMain_RowCommand" 
            onrowdeleted="gvEduForumMain0_RowDeleted" 
            onselectedindexchanged="gvEduForumMain_SelectedIndexChanged" 
            onunload="gvEduForumMain_Unload" Width="600px" PageSize="6" 
            Visible="False">
            <Columns>
                <asp:BoundField DataField="EduForumID" HeaderText="EduForumID" 
                    SortExpression="EduForumID" Visible="False" />
                <asp:CommandField ShowDeleteButton="True" />
                <asp:TemplateField HeaderText="Thread Starter">
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Font-Bold="True" 
                            Text='<%# Eval("userName") %>'></asp:Label>
                        <br />
                        <asp:Image ID="Image3" runat="server" Height="80px" 
                            ImageUrl='<%# Eval("imagePath") %>' Width="80px" />
                        <br />
                        Country:
                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("country") %>'></asp:Label>
                        <br />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="90px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thread">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink2" runat="server" Font-Size="14pt" ForeColor="Blue" 
                            NavigateUrl='<%# "EducationForumView.aspx?title="+Eval("title")+"&id="+Eval("EduForumID") %>' 
                            Text='<%# Eval("title") %>'></asp:HyperLink>
                        <br />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="dateTimeUpdated" HeaderText="Last Updated" 
                    SortExpression="dateTimeUpdated" />
                <asp:BoundField DataField="noOfReply" HeaderText="No of Reply" 
                    SortExpression="noOfReply" />
            </Columns>
            <SelectedRowStyle BackColor="Yellow" />
        </asp:GridView>
        <br />
        <br />
        <br />
        <asp:ObjectDataSource ID="EduForumMain" runat="server" 
            SelectMethod="GetEduForum" TypeName="outREACH.App_Code.EduForum" 
            OldValuesParameterFormatString="original_{0}" 
            DataObjectTypeName="outREACH.App_Code.EduForum" 
            DeleteMethod="DeleteEduForum">
        </asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
